import request from './../utils/request';

// 新建地址
export function addAddress(data) {
	return request({
		url: '/api/address/Add',
		method: 'POST',
		data
	})
}

// 修改地址
export function updateAddress(data) {
	return request({
		url: '/api/address/Update',
		method: 'POST',
		data
	})
}

// 根据id获取详情
export function getAddressInfo(data) {
	return request({
		url: '/api/address/Get',
		method: 'POST',
		data
	})
}

// 开票数据列表
export function getAddressList() {
	return request({
		url: '/api/address/GetList',
		method: 'get',
	})
}

// 默认地址
export function getDefaultAddress() {
	return request({
		url: '/api/address/GetDefaultAddress',
		method: 'get',
	})
}

// 删除
export function delAddress(data) {
	return request({
		url: '/api/address/Delete',
		method: 'post',
		data
	})
}

//物流信息
export function logisticsInfo(data) {
	return request({
		url: '/api/logistics/QueryRouteApplet',
		method: 'post',
		data
	})
}
